<?php

namespace app\admin\validate;

use think\Validate;

/**
 * Created by PhpStorm.
 * User: HuangLuSen
 * Date: 2017/5/4
 * Time: 19:36
 */
class Menu extends Validate
{
    protected $rule = [
        'title' => 'require',
        'name' => 'require',
        'pid' => 'require',
    ];
    protected $message = [
        'title.require' => '菜单名称不能为空',
        'name.require' => 'url不能为空',
        'pid.require' => '父级栏目ID不能为空',
    ];
}